<?php

define('WP_USE_THEMES', true);
$blog='NULL';
$blogdata='NULL';
$optiondomain = 'system';
$_REQUEST['b']='system';


require('../blogs/private.php');
require(CONFIGPATH . 'wp-config.php');
require_once( ABSPATH . WPINC . '/registration-functions.php');


get_currentuserinfo();
//$SITE_TITLE = get_settings('site_title');

$my_blogs = get_userblogs();

$logged_in=0;

if($my_blogs){
	foreach($my_blogs as $each_blog){
		if($each_blog->id==2) $logged_in=1;
	}
}

if($_POST["pwd"]=="XXXX"){
	$logged_in=1;
}

if(!$logged_in){
	echo "You have not logged in.<br>";
	exit();
}
//	echo "You have logged in.<br>";
?>
